package pack1021.exception;
// 异常的常见方法
public class DemoE {

    public static void main(String[] args) {
        try {
            int a = 9 / 0;
            System.out.println(a);
        } catch (Exception e) {
            System.out.println(e.getMessage());
            e.printStackTrace();
        }
    }
}